﻿using System;
using System.Linq;
using System.Linq.Expressions;

namespace MCORP.Framework.Dominio.IRepository
{
    public interface IBaseRepository<T>
    {
        void Delete(T pEntity);
        void Attach(T pEntity);
        void Detach(T pEntity);
        void Save(T pEntity);
        IQueryable<T> Find(Expression<Func<T, bool>> where);
        IQueryable<T> GetAll();
        void SaveChanges();
    }
}
